package net.jiastudy.biz.targettask.entity;

import io.swagger.annotations.ApiModelProperty;
import net.jiastudy.core.base.BaseEntity;

import javax.validation.constraints.NotEmpty;

public class TaskYear extends BaseEntity<TaskYear> {
    @ApiModelProperty(value = "id")
    private Long id;

    @NotEmpty(message = "代码不能为空")
    @ApiModelProperty(value = "任务年度code")
    private String code;

    @NotEmpty(message = "名称不能为空")
    @ApiModelProperty(value = "任务年度名称")
    private String title;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
